<template>
  <Affix />
  <el-container>
    <el-header>
      <el-affix :offset="0">
        <Header />
      </el-affix>
    </el-header>

    <el-main><router-view></router-view></el-main>
  </el-container>
</template>
<script>
import Header from "@/components/Header.vue";
import Affix from "@/components/Affix.vue";
export default {
  components: {
    Affix,
    Header,
  },
};
</script>

<style lang="scss">
.el-header {
  background: #bebebead;
}
a {
  font-weight: bold;

  &.router-link-exact-active {
    color: #42b983;
  }
}
.el-main {
  padding: 0 10px 0 10px;
}
</style>
